const colors = ['#5DB1FF', '#2FC25B', '#FBCD15', '#223273', '#8647DE', '#18C3C3', '#4F51CF', '#4F51CF', '#6AF9C4'],
  backgroundColor = 'rgba(255,255,255,.5)'


export const THEME = {
  colors,
  chart: {
    backgroundColor: null
  },
  title: {
    style: {
      color: '#000',
    }
  },
  subtitle: {
    style: {
      color: '#666666',
      margin: '100px 0'
    }
  },
  noData: {
    position: {
      verticalAlign: 'top',
      y: 20
    },
    style: {
      fontSize: 24,
      fontWeight: "bold",
      color: "#ddd",
    }
  },
  loading: {
    showDuration: 500,
    hideDuration: 500,
    labelStyle: {
      fontWeight: 0,
      color: colors[0]
    }
  },
  tooltip: {
    borderRadius: 1,
    borderWidth: 1,
    backgroundColor,
    shadow: false,
    // followPointer:true, 鼠标跟随
    // shape: 'square'
  },
  yAxis: {},
  plotOptions: {
    series: {
      dataLabels: {
        enabled: false,
        allowOverlap: true // 允许数据标签重叠
      }
    },
    column: {
      minPointLength: 1,
      maxPointWidth: 50,
      borderWidth: 0
    }
  },
  legend: {
    backgroundColor,
    layout: 'vertical',
    verticalAlign: 'middle',
    align: 'right',
    floating: true,
    itemMarginBottom: 6,
    itemMarginTop: 6,
    borderWidth: 1,
    borderColor: '#999',
    itemWidth: 100,
    symbolRadius: 0,
  }
}


export const OPTION = {
  lang: {
    contextButtonTitle: "图表导出菜单",
    decimalPoint: ".",
    downloadJPEG: "下载JPEG图片",
    downloadPDF: "下载PDF文件",
    downloadPNG: "下载PNG文件",
    downloadSVG: "下载SVG文件",
    drillUpText: "返回 {series.name}",
    loading: "加载中...",
    months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
    noData: "暂无数据",
    numericSymbols: ["千", "兆", "G", "T", "P", "E"],
    printChart: "打印图表",
    resetZoom: "恢复缩放",
    resetZoomTitle: "恢复图表",
    shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
    thousandsSep: ",",
    weekdays: ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期天"]
  }
}